Repository navigation
feat(dev): scripts/dev.ps1 PowerShell wrapper (bypass Windows' WSL-relay bash.exe) - #85
Merged
Merged
Conversation
…relay bash.exe
Windows ships C:\Windows\System32\bash.exe that routes 'bash' calls from cmd.exe
or PowerShell into WSL. If a WSL distro isn't installed, you get:
<3>WSL (xxx - Relay) ERROR: CreateProcessCommon:800: execvpe(/bin/bash) failed:
No such file or directory
The fix is to invoke Git for Windows' real bash.exe directly. dev.ps1 locates
it across the common install paths (Program Files, AppData, git-on-PATH) and
runs dev.sh through it with all flags passed through. Helpful error if Git
for Windows isn't installed at all.
DEV.md updated with both invocation forms + a troubleshooting note for the
WSL-relay error.
Tested: .\scripts\dev.ps1 --help works from PowerShell on Windows 11 with
Git for Windows installed at the default location.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When running `bash scripts/dev.sh` from cmd.exe or PowerShell on Windows, you may hit:
```
<3>WSL (xxx - Relay) ERROR: CreateProcessCommon:800: execvpe(/bin/bash) failed:
No such file or directory
```
That's Windows' built-in `C:\Windows\System32\bash.exe` routing into WSL. If you don't have a WSL distro installed, the relay fails.
This PR adds `scripts\dev.ps1`: a tiny PowerShell wrapper that locates Git for Windows' real `bash.exe` (Program Files / AppData / git-on-PATH) and runs `dev.sh` through it. All flags pass through (`--fresh`, `--down`, etc.).
DEV.md updated with:
Test plan